<?php

namespace App\Events;

use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class UserCommand extends Event
{
    use SerializesModels;

    public $cmd;
    public $num;
    public $deviceCode;
    public $orderNumber;
    public $fd;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($cmd, $num, $deviceCode, $orderNumber, $fd = null)
    {
        $this->cmd = $cmd;
        $this->num = $num;
        $this->deviceCode = $deviceCode;
        $this->orderNumber = $orderNumber;
        $this->fd = $fd;
    }

    /**
     * Get the channels the event should be broadcast on.
     *
     * @return array
     */
    public function broadcastOn()
    {
        return [];
    }
}
